package com.wzl.ma;

import com.wzl.ma.db.MaDbAdapter;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MedicineAlert extends Activity {
	
	Button btn;
	Button btnCollectUserInfo;
	MaDbAdapter dbAdapter;
	
	Button btnTakePhoto;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        dbAdapter = new MaDbAdapter(this);
        dbAdapter.open();
        btn = (Button)findViewById(R.id.Button01);
        btn.setOnClickListener(new View.OnClickListener(){
			@Override
			public void onClick(View v) {
				dbAdapter.close();
			}});
        
        
        btnCollectUserInfo = (Button)findViewById(R.id.BtnCollectUserInfo);
        btnCollectUserInfo.setOnClickListener(new View.OnClickListener(){
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClassName("com.wzl.ma", "com.wzl.ma.CollectUserInfo");
				startActivity(intent);
			}});
        
        btnTakePhoto = (Button) findViewById(R.id.btnTakePhoto);
        btnTakePhoto.setOnClickListener(new View.OnClickListener(){
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClassName("com.wzl.ma", "com.wzl.ma.TakePhoto");
				startActivity(intent);
			}});
    }
}